﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace FanaticToy.Core.Configure
{
    public class ToyNode
    {
        ///<summary>当前节点的名称。</summary>
        [XmlAttribute]
        public string Name { get; set; }

        [XmlAttribute]
        public string ReleativePath { get; set; }

        ///<summary>想关联的节点的名称。</summary>
        public List<ToyNodeTarget> LinkNodes { get; set; }

        ///<summary>标志符提取的策略。</summary>
        [XmlElement(typeof(FileSystemLevel1FormatToyStrategy))]
        [XmlElement(typeof(FileSystemLevel2FormatToyStrategy))]
        public BaseToyStrategy Strategy { get; set; }
    }
}
